<template>
    <el-container class="layout-container-demo">
        <el-aside width="auto">
            <el-scrollbar>
                <Menu/>
            </el-scrollbar>
        </el-aside>
        <el-container>
            <el-header>
                <Top/>
            </el-header>
            <el-main>
                <el-scrollbar>
                    <router-view/>
                </el-scrollbar>
            </el-main>
            <el-footer style="width: 100%">
                <span>2023 © debug069-Admin By debug069 Technology.</span>
            </el-footer>
        </el-container>
    </el-container>
</template>

<script lang="ts" setup>
import Menu from '@/components/Home/menu.vue'
import Top from '@/components/Home/top.vue'
</script>

<style lang="scss" scoped>
.layout-container-demo {
  height: 100%;
}

.layout-container-demo .el-header {
  height: $header_height;
  line-height: $header_height;
  position: relative;
  border-bottom: 1px solid var(--el-border-color);
}

.layout-container-demo .el-aside {
  border-right: 1px solid var(--el-border-color);
}

.layout-container-demo .el-menu {
  border-right: none;
}

.layout-container-demo .el-main {
  padding: 0 10px 10px;
}

.layout-container-demo .el-footer {
  height: $bottom_height;
  line-height: $bottom_height - 1px;
  margin: auto;
  font-size: 14px;
  border-top: 1px solid var(--el-border-color);

  span {
    display: block;
    text-align: center;
  }
}

.layout-container-demo .toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  right: 20px;
}
</style>
